package com.audaque.springboot.foshanupload.web.nosaveframeworklogin.config;


import com.audaque.springboot.foshanupload.authcore.properties.LoginProperties;
import com.audaque.springboot.foshanupload.web.nosaveframeworklogin.filter.UsernamePasswordLoginFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.servlet.Filter;

/**
 * @author zgb
 * @desc ...
 * @date 2022-08-11 01:10:05
 */
@Configuration
public class UsernamePasswordLoginFilterBeanConfig {

    @Autowired
    private LoginProperties loginProperties;


    //交给spring
    @Bean
    public Filter usernamePasswordLoginFilter() {
        return new UsernamePasswordLoginFilter();
    }


}
